home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
passwords.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
952b
|
24 lines
/* RCSVER $Id: passwords.sql,v 1.2 1999-02-24 15:05:41-06 randy CURRENT $ */
/* *************************************************************************
* Copyright (C) 1999, Agent Systems, Inc. All Rights Reserved.
*
* Name: passwords.sql
* Date: 02/17/1999
* memo: Randy Wood
* Description: Create the passwords table. This table contains the
* passwords for each user/subsystem combination.
* A user can have different passwords, depending on subsystem.
* Changes:
************************************************************************* */
CREATE TABLE passwords
(
user_id NUMBER(38) /* ID of user */
CONSTRAINT ref1_passwords REFERENCES
users(user_id) ON DELETE CASCADE,
subsys_id NUMBER(38) /* ID of subsystem */
CONSTRAINT ref2_passwords REFERENCES
subsystems(id) ON DELETE CASCADE,
password VARCHAR2(10), /* users password */
CONSTRAINT pk_passwords PRIMARY KEY (user_id, subsys_id)
);